package com.ruoyi.product.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.common.core.annotation.Query;
import com.ruoyi.common.core.web.page.PageSize;
import lombok.Data;

import java.util.Date;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class WorkOrderDto extends PageSize {


    private Long id;

    /**
     *  工单号
     */
    @Query( type = Query.Type.INNER_LIKE)
    private String wo;


    private Double qty;

    /**
     * 物料号
     */
    @Query( type = Query.Type.INNER_LIKE)
    private String materialCode;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String remark;

    /**
     *  开始时间
     */


    /**
     * 工单类型
     */
    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planStartTime;

    /**
     * 计划结束时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planEndTime;


//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Query( type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @Query( type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Query( type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;


}
